AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
lib_LTLIBRARIES = libmiko.la
libmiko_la_SOURCES = 	src/socket.c \
						src/protocol_server.c \
						src/protocol_client.c \
						src/error.c
libmiko_la_CFLAGS  = -I$(srcdir)/include $(ICU_CFLAGS)
#libmiko_la_CFLAGS  = -I$(srcdir)/include -g
libmiko_la_LDFLAGS = -version-info ${MIKO_SO_VERSION} $(ICU_LDFLAGS)

miko_includedir=$(includedir)/miko
miko_include_HEADERS =	include/miko/miko.h \
				include/miko/socket.h \
				include/miko/defines.h \
				include/miko/protocol.h

miko_libincludedir = $(libdir)/miko-$(MIKO_API_VERSION)/include

docdir = $(datadir)/doc/@PACKAGE@
EXTRA_DIST = doc

install-data-hook:
	$(MKDIR_P) $(DESTDIR)$(docdir)
	cp -R doc $(DESTDIR)$(docdir)/apidoc
dist_noinst_SCRIPTS = autogen.sh